From 0e1cef21464acd09353c06a6c54ab60785f7e9b8 Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Tue, 29 Apr 2008 14:55:47 +0000 Subject: [PATCH] * Hide edit section links on Special:Undelete --- RELEASE-NOTES | 1 + includes/SpecialUndelete.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 445ac50a30..858a2e1077 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -221,6 +221,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13824) AJAX search suggestion now works with non-SkinTemplate skins * Added 'application/x-dia-diagram' MediaWiki's known MIME types * (bug 13866) skins/common/shared.css - invalid attribute fixing +* Hide edit section links on Special:Undelete === API changes in 1.13 === diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index 9a0baa0148..706dab309e 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -770,6 +770,11 @@ class UndeleteForm { if( $this->mPreview ) { $wgOut->addHtml( "
\n" ); + + //Hide [edit]s + $popts = $wgOut->parserOptions(); + $popts->setEditSection( false ); + $wgOut->parserOptions( $popts ); $wgOut->addWikiTextTitleTidy( $rev->revText(), $this->mTargetObj, false ); } -- 2.20.1